<?php
$error_sql = "Lỗi kết nối";
$css = array('<link type="icon/x-icon" href="images/logo_icon.ico" rel="shortcut icon" />',
				'<link href="style.css" rel="stylesheet" type="text/css" />',
				'<link href="assets/wt-rotator.css" rel="stylesheet" type="text/css" />',
				'<noscript><meta http-equiv="refresh" content="2; URL=/" /></noscript>'
			 );
define(does_not_exist,'Mục này không tồn tại.');

define(dmxeco, 2);
define(dmtieccuoi, 7);

define(url_hinh_default,'/images/logo1.png');
define(url_hinh_menu,'upload/images/danhmuc/');
define(url_hinh_menu_thumbs,'upload/_thumbs/Images/danhmuc/');
define(url_hinh_info,'upload/images/info/');
define(url_hinh_info_thumbs,'upload/_thumbs/Images/info/');
define(url_hinh_xeco,'upload/images/thuvien_xeco/');
define(url_hinh_xeco_thumbs,'upload/_thumbs/Images/thuvien_xeco/');
define(url_hinh_picture,'upload/images/thuvienanh/');
define(url_hinh_picture_thumbs,'upload/_thumbs/Images/thuvienanh/');
define(url_hinh_video,'upload/images/video/');
define(url_hinh_video_thumbs,'upload/_thumbs/Images/video/');

define(benh_vien_xe_co,'Hỏi đáp thắc mắc');
define(kien_thuc_xe_co,'Kiến thức xe cổ');

include_once('class/class.trangchu.php');
$tc = new trangchu();

$config = $tc->config() or die ($error_sql);
$row_config = mysql_fetch_array($config);
mysql_free_result($config);

$domain = $row_config['domain'];
$lang = $row_config['lang'];
define(max_news,$row_config['max_news']);
define(max_product,$row_config['max_product']);
define(max_picture,$row_config['max_picture']);
define(max_video,$row_config['max_video']);